package com.sunday.common.core.remoting.rest.response.utils;

import com.sunday.common.core.gson.GsonUtils;
import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 置换 rest 响应 code
 *
 * @author zsy
 * @since 2022/10/14
 */
@Slf4j
@Data
@Builder
public class SwapRestCode {

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误信息
     */
    private String errorMessage;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
